<p>This option lets you provide a container image that does not extend the Jenkins agent image.</p>

<p>The provided container image must have a (headless) JRE installed (using a version compatible with the current Jenkins version).</p>

<p>The agent will use the Java installation designated by the <code>JENKINS_JAVA_BIN</code> environment variable, or the one in <code>PATH</code> if undefined.</p>

<p>Enabling this option will override the command and arguments defined in the agent container.</p>

<p>Example</p>

<pre>
podTemplate(agentContainer:'foo',
            agentInjection: true,
            yaml:'''
spec:
  containers:
  - name: foo
    image: eclipse-temurin:22.0.2_9-jre
''') {
  node(POD_LABEL) {
    sh 'true'
  }
}
</pre>
